<div ng-controller="privilegeCtrl">
<!-- 新增 BEGIN -->
    <div class="right-product right-full animate-time" ng-class="{ true: 'right-full', false: 'right-off' }[isActive]">
        <div class="center-back right-back">

            <!-- 顶部导航 BEGIN -->
                <ul class="breadcrumb">
                    <li>
                        <a href="#">
                            <i class="glyphicon glyphicon-home"></i>
                        </a>
                        <span class="divider">&nbsp;</span>
                    </li>
                    <li>
                        <a href="#">功能管理</a>
                        <span class="divider">&nbsp;</span>
                    </li>
                    <li>
                        <a href="#">分馆管理</a>
                        <span class="divider-last">&nbsp;</span>
                    </li>
                </ul>
            <!-- 顶部导航 END -->

            <div class="container-fluid">
                <div class="info-center">
                    
                    <!-- 标题 BEGIN -->
                        <h3 class="page-title">
                            分馆管理 — 修改
                        </h3>
                    <!-- 标题 END -->
                    
                    <!-- 返回列表 BEGIN -->
                        <div class="panel panel-default">
                            <div class="panel-heading" ui-sref="user.branch">
                                <i class="glyphicon glyphicon-arrow-left"></i>
                                返回列表
                            </div>
                        </div>
                    <!-- 返回列表 END -->
                    
                    <!-- 新增内容 BEGIN -->
                        <div class="contain">

                            <form name="userAdd_form">

                                <div class="overflow-hide form-group">
                                    <label class="col-xs-12 col-sm-3 control-label text-right">分馆名称：</label>
                                    <div class="col-xs-12 col-sm-6">
                                        <input type="text" 
                                               name=""
                                               class="form-control" 
                                               autocomplete="off"
                                               ng-minlength="2" 
                                               ng-maxlength="20"  
                                               required 
                                        />
                                        <label class="red required">*</label>
                                    </div>       
                                </div>
                          
                                <div class="form-group height-auto">
                                    <label class="col-xs-12 col-sm-3 control-label text-right">关键字：</label>
                                    <div class="col-xs-12 col-sm-6">
                                        <input type="text" 
                                               name=""
                                               class="form-control" 
                                               autocomplete="off"
                                               ng-minlength="2" 
                                               ng-maxlength="20"  
                                               required 
                                        />
                                        <label class="red required">*</label>
                                    </div>
                                </div>

                                <div class="form-group height-auto">
                                    <label class="col-xs-12 col-sm-3 control-label text-right">年龄范围：</label>
                                    <div class="col-xs-1 col-sm-2">
                                        <input type="text" 
                                               name=""
                                               class="form-control" 
                                               placeholder="最小年龄" 
                                               autocomplete="off"
                                               required 
                                        	   />
                                    </div>
                                    <p class="division pull-left">至</p>
                                    <div class="col-xs-1 col-sm-2">
                                    	<input type="text" 
                                               name=""
                                               class="form-control" 
                                               placeholder="最大年龄" 
                                               autocomplete="off"
                                               required 
                                        	   />
                                    </div>
                                </div>

                                <div class="form-group height-auto">
                                    <label class="col-xs-12 col-sm-3 control-label text-right">启用/禁用：</label>
                                    <div class="col-xs-12 col-sm-6">
                                        <select ng-model="role_autoAssignment" class="ng-pristine ng-valid ng-touched">
                                            <option value="" class="" selected="selected">请选择</option>
                                            <option value="number:0" label="启用">启用</option>
                                            <option value="number:1" label="禁用">禁用</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="overflow-hide form-group height-auto">
                                    <label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
                                    <div class="col-xs-12 col-sm-6">
                                        <textarea rows="5" 
                                                  type="text" 
                                                  name="description" 
                                                  class="form-control" 
                                                  ng-model="edit_description"
                                                  />
                                        </textarea>
                                    </div>
                                </div>

                                <div class="overflow-hide form-group height-auto">
                                	<label class="col-xs-12 col-sm-2"></label>
	                                <div class="col-xs-12 col-sm-7 text-right">
										
	                                	<button type="button" class="add-column btn btn-normal pull-left">
	                                		<span class="glyphicon glyphicon-plus"></span>  
	                                		栏目
	                                	</button>

										<table class="table-column table table-bordered table-header">
                                        <thead>
                                            <tr>
                                                <td class="w10 text-center">栏目标题</td>
                                                <td class="w10 text-center">所属栏目</td>
                                                <td class="w10 text-center">是否专题</td>
                                                <td class="w10 text-center">排序</td>
                                                <td class="w10 text-center">操作</td>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                                <td class="text-center">1</td>
                                                <td class="pointer text-center" data-toggle="modal" data-target="#subColumn">
                                                	小故事
                                                </td>
                                                <td class="select text-center">
                                                	<select ng-model="role_autoAssignment" class="ng-pristine ng-valid ng-touched">
			                                            <option value="" class="" selected="selected">请选择</option>
			                                            <option value="number:0" label="是">是</option>
			                                            <option value="number:1" label="否">否</option>
			                                        </select>
                                                </td>
                                                <td class="text-center">4</td>
                                                <td class="text-center icon-td">
                                                    <i class="icon-relation" title="关联资源" ui-sref="user.assResources"></i>
                                                    <i class="icon-relation" title="关联分类" ng-click="edit($index)"    data-toggle="modal" data-target="#assClassification"></i>
                                                    <i class="icon-delete"   title="删除" 	  ng-click="delete($index)"  data-toggle="modal" data-target="#delete"></i>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
                                            </tr>
                                        </tbody>
                                        <tfoot ng-show="isNoData">
                                            <!-- <tr>
                                                <td colspan="12">
                                                    <div class="pull-right">
                                                        <nav>
                                                            <tm-pagination conf="paginationConf"></tm-pagination>
                                                        </nav>
                                                    </div>
                                                </td>
                                            </tr> -->
                                        </tfoot>
                                    </table>
                                	</div>
                                </div>

                        	</form>
                            
                            <div class="clearfix"></div>

                            <div class="form-group height-auto">
                                <label class="col-xs-12 col-sm-3 control-label text-right"></label>
                                <div class="col-xs-12 col-sm-6">
                                    <div class="modal-footer">
                                        <button type="button" 
                                                class="btn btn-primary" 
                                                ng-disabled="userAdd_form.$invalid"  
                                                ng-click="confirmNewlyAdded()"
                                                ui-sref="user.branch"
                                                >确定
                                        </button>
                                    </div>
                                </div>
                            </div>

                        </div>
                    <!-- 新增内容 END -->

                </div>
            </div>

        </div>
    </div>
<!-- 新增 END -->
 </div>	


<!-- 所属栏目 BEGIN -->
    <sub-column></sub-column>
<!-- 所属栏目 END -->

<!-- 关联分类 BEGIN -->
    <ass-classification></ass-classification>
<!-- 关联分类 END -->

<!-- 删除 BEGIN -->
    <column-delete></column-delete>
<!-- 删除 END -->